<?php

/**
* information 控制器文件
*/
class ControllerInformation extends GetLoad
{
	public $data= array();
	public function index($information_id)
	{

		$this->load("Model/information");
		$this->jianliWEB($information_id[0]);
	}

	public function jianliWEB($information_id){
		
		$information = new ModelGetInformation();
		
		
		$results     = $information->GetInformation($information_id);



				$data["name_id"]        = $results["name_id"];
				$data["title"]          = $results["title"];
				$data["nian"]           = $results["nian"];
				$data["yue"]            = $results["yue"];
				$data["ri"]             = $results["ri"];
				$data["neirong"]        = $results["neirong"];
				$data["information_id"] = $information_id;
				$data['shuliang']       = $information->Getdianzan($information_id);

 
		$informations = $information->GetNamesInformation($data["name_id"]);

		foreach ($informations as $one) {
			$data["information"][$one['nian']][$one['yue']][] =array(
					'title' => $one['title'],
					'url'   => "./index.php?route=Controller/information/ControllerInformation/index&=".$one['information_id']
				
			);
				

		}

	
		$names = $information->GetName($data["name_id"]);

		
			$data["name"]       = $names["name"];
			$data["xuanyan"]    = $names["xuanyan"];
			$data["huanyingyu"] = $names["huanyingyu"];
			$this->view("view/information",$data);
			//var_dump($data);

	}

	



}


